package com.ssh.entity;

import java.sql.Timestamp;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

@Entity
public class TaskImage extends BaseEntity{
	private static final long serialVersionUID = 6002548593623858681L;
	private String url;
	private Integer imgType;
	private Timestamp createDate;
	private Integer del;
	
	private TaskBrand taskBrand;
	private SuperMarket superMarket;

	public TaskImage() {
	}

	@ManyToOne(cascade ={CascadeType.ALL},fetch = FetchType.LAZY)       
    @JoinColumn(name="taskBrandId") 
	public TaskBrand getTaskBrand() {
		return taskBrand;
	}

	public void setTaskBrand(TaskBrand taskBrand) {
		this.taskBrand = taskBrand;
	}

	@ManyToOne(cascade ={CascadeType.ALL},fetch = FetchType.LAZY)       
    @JoinColumn(name="superMarketId") 
	public SuperMarket getSuperMarket() {
		return superMarket;
	}

	public void setSuperMarket(SuperMarket superMarket) {
		this.superMarket = superMarket;
	}

	public String getUrl() {
		return this.url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Integer getImgType() {
		return this.imgType;
	}

	public void setImgType(Integer imgType) {
		this.imgType = imgType;
	}

	public Timestamp getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Timestamp createDate) {
		this.createDate = createDate;
	}

	public Integer getDel() {
		return this.del;
	}

	public void setDel(Integer del) {
		this.del = del;
	}
}